package com.ruoyi.lock.service.impl;

import com.ruoyi.lock.domain.AWechatMiniProgramUsers;
import com.ruoyi.lock.mapper.AWechatMiniProgramUsersMapper;
import com.ruoyi.lock.service.IAWechatMiniProgramUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 小程序用户Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-09
 */
@Service
public class AWechatMiniProgramUsersServiceImpl implements IAWechatMiniProgramUsersService 
{
    @Autowired
    private AWechatMiniProgramUsersMapper aWechatMiniProgramUsersMapper;

    /**
     * 查询小程序用户
     * 
     * @param id 小程序用户主键
     * @return 小程序用户
     */
    @Override
    public AWechatMiniProgramUsers selectAWechatMiniProgramUsersById(Long id)
    {
        return aWechatMiniProgramUsersMapper.selectAWechatMiniProgramUsersById(id);
    }

    /**
     * 查询小程序用户列表
     * 
     * @param aWechatMiniProgramUsers 小程序用户
     * @return 小程序用户
     */
    @Override
    public List<AWechatMiniProgramUsers> selectAWechatMiniProgramUsersList(AWechatMiniProgramUsers aWechatMiniProgramUsers)
    {
        return aWechatMiniProgramUsersMapper.selectAWechatMiniProgramUsersList(aWechatMiniProgramUsers);
    }

    /**
     * 新增小程序用户
     * 
     * @param aWechatMiniProgramUsers 小程序用户
     * @return 结果
     */
    @Override
    public int insertAWechatMiniProgramUsers(AWechatMiniProgramUsers aWechatMiniProgramUsers)
    {
        return aWechatMiniProgramUsersMapper.insertAWechatMiniProgramUsers(aWechatMiniProgramUsers);
    }

    /**
     * 修改小程序用户
     * 
     * @param aWechatMiniProgramUsers 小程序用户
     * @return 结果
     */
    @Override
    public int updateAWechatMiniProgramUsers(AWechatMiniProgramUsers aWechatMiniProgramUsers)
    {
        return aWechatMiniProgramUsersMapper.updateAWechatMiniProgramUsers(aWechatMiniProgramUsers);
    }

    /**
     * 批量删除小程序用户
     * 
     * @param ids 需要删除的小程序用户主键
     * @return 结果
     */
    @Override
    public int deleteAWechatMiniProgramUsersByIds(Long[] ids)
    {
        return aWechatMiniProgramUsersMapper.deleteAWechatMiniProgramUsersByIds(ids);
    }

    /**
     * 删除小程序用户信息
     * 
     * @param id 小程序用户主键
     * @return 结果
     */
    @Override
    public int deleteAWechatMiniProgramUsersById(Long id)
    {
        return aWechatMiniProgramUsersMapper.deleteAWechatMiniProgramUsersById(id);
    }
}
